package cn.yeziji.file.handler.service;

import cn.yeziji.forum.common.key.CommonKey;
import cn.yzj.common.CommonSymbol;

/**
 * Common 公共文件
 *
 * @author gzkemays
 * @since 2022/11/04 12:15 AM
 */
public class CommonSelected implements TypeSelected {
  String path;
  Integer chunks;

  public CommonSelected(String path, Integer chunks) {
    this.path = path;
    this.chunks = chunks;
  }

  @Override
  public Object types(String type) {
    return CommonKey.LOCATION_FORUM_FILE_SCOPE
        + "/"
        + path
        + "/"
        + type
        + CommonSymbol.STAR_SIGN
        + chunks;
  }
}
